package com.crane.common.core.enums;

public class ConstantEnums {

    public enum STATUS {
        /**
         * 无效
         */
        INVALID(0),
        /**
         * 有效
         */
        VALID(1),
        /**
         * 冻结
         */
        FREZON(9);

        private int value;

        private STATUS(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    public enum SEX {
        /**
         * 无效
         */
        MAN(0, "男"),
        /**
         * 有效
         */
        WOMAN(1, "女");

        private int value;

        private String desc;

        private SEX(int value, String desc) {
            this.setValue(value);
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }
    }
}
